import book.BookList;
import user.Max;
import user.Users;

import java.util.Scanner;

public class Main {
    public static Users shenfen(){
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入您的身份");
        String name= sc.nextLine();
        if(name.equals("Max")){
            return new Max(name);
        }
        if(name.equals("Min")) {
            return new Max(name);
        }
        return null;
    }
    public static void main(String[] args) {
        Users users=shenfen();
        Scanner sc=new Scanner(System.in);
        BookList bookList=new BookList();
        while (true){
            int chioce=users.menu();
            users.choice(chioce,bookList);
        }

    }
}